import request from '@/utils/request'

const api_name = '/govern/governance'

export default {
  globalScore() {
    return request({
      url: `${api_name}/globalScore/`,
      method: 'get'
    })
  },
  globalSize() {
    return request({
      url: `${api_name}/globalSize/`,
      method: 'get'
    })
  },
  governanceOptions(optionType) {
    return request({
      url: `${api_name}/governanceOptions/${optionType}`,
      method: 'get'
    })
  },
  globalDetailList(optionCode,page,limit) {
    return request({
      url: `${api_name}/governanceDetail/${optionCode}/${page}/${limit}/`,
      method: 'get'
    })
  }
}
